package com.gitee.fantaros.web.fan.netcut.mapper;

import com.gitee.fantaros.web.fan.netcut.bean.PasterInfo;
import com.vaadin.flow.spring.annotation.SpringComponent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@SpringComponent
@SuppressWarnings("unused")
public interface AiMapper {

    void createCounterTable();
    void createAiInfoTable();
    int selectCountOfCounter(@Param("tableName") String tableName);
    long selectNextCounter(@Param("tableName") String tableName);
    void insertOneCounter(@Param("tableName") String tableName,
                          @Param("currVal") long currVal);
    void updateOneCounter(@Param("tableName") String tableName,
                          @Param("currVal") long currVal);
    void insertOneAiInfo(@Param("token") String token,
                    @Param("sortId") long sortId,
                    @Param("content") String contents);
    List<String> selectAllAiInfoForToken(@Param("token") String token);
}
